package edu.ahut.corejava;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Vector;

//class A extends  System{
//
//}
public class Demo {
    public static void main(String[] args) {
        // System s=new System();
        Math math = null;
        System.out.println(math.sqrt(2));//static method
//        Date date=null;
//        System.out.println(date.getYear()); //member method
        int[] a = new int[]{1, 3, 2, 5, 7};
        Arrays.sort(a);
        System.out.println(Arrays.toString(a));

        List<Integer> list = new Vector<Integer>();
        for (int i = 0; i < 10; i++)
            list.add(i);

        System.out.println(list);
        Collections.shuffle(list);
        System.out.println(list);

    }
}
